<div class="container">
	<div class="navbar-top">
		<div class="row">
			<div class="col-xs-3">
				<a href="{{ url('/') }}">
					<img src="{{ asset('/imgs/logo.png') }}" alt="" />
				</a>
			</div>
			<div class="col-xs-6">
				<div class="vertical-middle">
				{!! Form::open(array('method' => 'GET', 'url' => 'search', 'class' => 'form-group')) !!}
					<div class="input-group">
						<input class="form-control" name="keywords" type="text" />
						<a href="javascript::void(0)" class="input-group-addon btn-danger" onclick="$(this).parent().parent().submit()">
							<span class="fa fa-fw fa-search"></span>
						</a>
					</div>
				{!! Form::close() !!}
				</div>
			</div>
			<div class="col-xs-3 text-right">
				<div class="vertical-middle">
					@if(Auth::check())
					<a href="{{ url('/cs/bookshelves') }}" class="btn btn-default">
						<span class="fa fa-fw fa-book"></span>
						我的书架
					</a>
					<div class="btn-group">
						<button type="button" class="btn btn-default">
							<span class="fa fa-fw fa-user"></span>
							{{ str_limit(Auth::user()->nickname, 10) }}
						</button>
						<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
							<span class="caret"></span>
						</button>
						<ul class="dropdown-menu">
							<li><a href="{{ url('/cs') }}">个人中心</a></li>
							<li><a href="{{ url('/cs/comments') }}">我的书评</a></li>
							<li><a href="{{ url('/cs/feedbacks') }}">我的反馈</a></li>
							<li role="separator" class="divider"></li>
							<li><a href="{{ url('/logout') }}">退出登录</a></li>
						</ul>
					</div>
					@else
					<a href="{{ url('/history') }}" class="btn btn-default">
						<span class="fa fa-fw fa-book"></span>
						阅读记录
					</a>
					<a href="{{ url('/login') }}" class="btn btn-default">
						<span class="fa fa-fw fa-user"></span>
						登录/注册
					</a>
					@endif
				</div>
			</div>
		</div>
	</div>
</div>
<div class="navbar navbar-inverse">
	<div class="container">
		<ul class="nav navbar-nav pull-left">
			<li @if(!isset($category)) class="active" @endif><a href="{{ url('/') }}">首页</a></li>
			@foreach($categories as $ct)
				<li @if(isset($category) AND $category->id == $ct->id) class="active" @endif><a href="{{ url('/categories/'.$ct->order) }}">{{ $ct->name }}</a></li>
			@endforeach
		</ul>
	</div>
</div>
		